using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using FairyGUI;

namespace ABA
{
    public class SysFirst : Singleton<SysFirst>
    {
        private class FirstWin : FGUIWindow
        {
            public FirstWin(FGUIWinInfo type):base(type){
            }

            protected override void OnInit()
            {
                base.OnInit();
            }
        }

        FirstWin wind;
        protected override void Init(){

            var SYS_FIRST = new FGUIWinInfo
            {
                cls_name = "FirstWin",
                pkg_name = "sys",
                comp_name = "first",
                zindex = E_FGUIWIN_ZINDEX.VIEW,
                ani = false
            };


            wind = new FirstWin(SYS_FIRST);
        }

        public void Show(){
            wind.Show();
        }
        public void SetToFront(){
            wind.ShowForZindex(9);
        }

        public void SetToBack(){
            wind.ShowForZindex(0);
        }
        public void Hide(){
            wind.Hide();
        }

    }
}
